import {Entity, PrimaryGeneratedColumn, Column, BaseEntity, CreateDateColumn} from "typeorm";

@Entity()
export class Ordergoods extends BaseEntity{
    @PrimaryGeneratedColumn()
    id: number;

    @Column({type:"varchar",length:64})
    orderCode: string;

    @Column({type:"varchar",length:64})
    icode: string;
    
    @Column({type:"varchar",length:64})
    gcode: string;

    @Column({unsigned:true})
    count:number;
    
    @CreateDateColumn()
    createtime: Date;

    @CreateDateColumn()
    updatetime: Date;

}